#include "Book.h"

int Book::counter = 0;

Book::Book(): id(counter++), free(true)
{
}

int Book::getId()
{
	return id;
}

bool Book::isFree()
{
	return free;
}

void Book::take()
{
	free = false;
}

void Book::returnToLibrary()
{
	free = true;
}
